package operators

/**
 * 1.算术运算符  + - * / % ++ --
 * 2.关系运算符  == != < > <=  >=
 * 3.逻辑运算符  &&  || !
 * 4.位运算符    & | ^（异或） ~ (按位反运算符)
 * 5.赋值运算符  += -= *= /+  (%)=
 *
 * 6. 范围运算符 ..
 */
class Operator {
    public static void main(String[] args) {
        def range = 3..14;
        println(range)
        println(range.to)
        println(range.toArray())
        println(range.class)
        println(range.get(3))
        def first = range.first()
        def last = range.last()

    }
}
